<template>
  <h1>mock</h1>
  <el-table :data="tableData" stripe style="width: 100%">
    <el-table-column prop="addrNo" label="编号" width="180"/>
    <el-table-column prop="name" label="姓名" width="180"/>
    <el-table-column prop="addr" label="城市"/>
  </el-table>
</template>
<script>
import {onMounted, ref} from "vue";
import axios from "axios";
import {loadAll} from "../../api/login";
// import {loadAll} from "@/api/user";

export default {
  setup() {
    let tableData = ref()
    onMounted(() => {
      loadAll().then(res => {
        // console.log(res.data)
        tableData.value = res.data
      })
    })
    return {
      tableData
    }
  }
}
</script>

<style></style>
